package com.ruoyi.electrical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electrical.mapper.ElectricalFaultInspectionMapper;
import com.ruoyi.electrical.domain.ElectricalFaultInspection;
import com.ruoyi.electrical.service.IElectricalFaultInspectionService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-09
 */
@Service
public class ElectricalFaultInspectionServiceImpl implements IElectricalFaultInspectionService 
{
    @Autowired
    private ElectricalFaultInspectionMapper electricalFaultInspectionMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param faultInspectionId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ElectricalFaultInspection selectElectricalFaultInspectionByFaultInspectionId(Long faultInspectionId)
    {
        return electricalFaultInspectionMapper.selectElectricalFaultInspectionByFaultInspectionId(faultInspectionId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param electricalFaultInspection 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ElectricalFaultInspection> selectElectricalFaultInspectionList(ElectricalFaultInspection electricalFaultInspection)
    {
        return electricalFaultInspectionMapper.selectElectricalFaultInspectionList(electricalFaultInspection);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param electricalFaultInspection 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertElectricalFaultInspection(ElectricalFaultInspection electricalFaultInspection)
    {
        return electricalFaultInspectionMapper.insertElectricalFaultInspection(electricalFaultInspection);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param electricalFaultInspection 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateElectricalFaultInspection(ElectricalFaultInspection electricalFaultInspection)
    {
        return electricalFaultInspectionMapper.updateElectricalFaultInspection(electricalFaultInspection);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param faultInspectionIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalFaultInspectionByFaultInspectionIds(Long[] faultInspectionIds)
    {
        return electricalFaultInspectionMapper.deleteElectricalFaultInspectionByFaultInspectionIds(faultInspectionIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param faultInspectionId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalFaultInspectionByFaultInspectionId(Long faultInspectionId)
    {
        return electricalFaultInspectionMapper.deleteElectricalFaultInspectionByFaultInspectionId(faultInspectionId);
    }
}
